import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SCountryBuffInfo
    
    export  class SCountryBuffInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCountryBuffInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.position);
            arg1.writeString(this.playerName);
            arg1.writeInt(this.buffId);
            arg1.writeLong(this.ActiveTime);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.position = arg1.readInt();
            this.playerName = arg1.readString();
            this.buffId = arg1.readInt();
            this.ActiveTime = arg1.readLong();
            return;
        }

        public /* const */_type: int=1003;

        public /* var */position: int;

        public /* var */playerName: string;

        public /* var */buffId: int;

        public /* var */ActiveTime: number;

        public static /* var */_regist: SCountryBuffInfo;
    }

            SCountryBuffInfo._regist = new SCountryBuffInfo(true);
        